import * as conLockApi from "../apis/contractLockSend";
import {Modal} from "antd";
import {WeaLocaleProvider} from "ecCom";
import * as Static from './staticEnmu'

const getLabel = WeaLocaleProvider.getLabel;

/**
 * 真正的数据保存操作
 * @param params 保存参数对象
 */
// export const getInterfaceSeted = (params, cllbackfn, setloading) => {
export const getInterfaceSeted = (params) => {
    return conLockApi.doSaveFormCreateAndEdit(params);

}

/**
 * 编辑路径--跳转到流程对应路径的设置中
 * @param workflowid
 * @param opentype
 */
export const goToPathSetting = (workflowid, opentype = "_blank") => {
    window.open(`/spa/workflow/static4engine/engine.html#/main/workflowengine/path/pathSet/pathDetail/baseSet/baseInfo?menuIds=10001%2C10023%2C120&workflowId=${workflowid}&showLeftTree=false`, opentype);
}